<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
		  {{ message }}
		</div>
		
		<script type="text/javascript">
			var data = {message : 1};
			var vm = new Vue({
				el:'#app',
				data:data
				});
			vm.$watch('message',function(newval,oldval){
				console.log(newval+'---'+oldval);
			})
			vm.$data.message = "test-----"
			
		</script>
	</body>
</html>
